package com.work.demo.test;

public class CarSpeedMeter extends SpeedMeter{


    private double radius;

    public CarSpeedMeter(double radius){
        this.radius = radius;
    }

    @Override
    public double calGirth() {
        return radius * 2 * Math.PI;
    }


    public static void main(String[] args) {
        CarSpeedMeter meter = new CarSpeedMeter(0.34);

        meter.setTurnRate(15);

        System.out.println(meter.getSpeed());

    }
}
